import request from '@/utils/request'

//运行维护分页列表 - 管理员
export function queryPageList(data) {
	return request({
		method: 'post',
		url: 'tbSafeguard/queryPageList',
		headers: {
			userButton: '20dfd92ca0244a61996e53e72c007f82'
		},
		data
	})
}

//运行维护分页列表 - 运行维护人员
export function queryUserPageList(data) {
	return request({
		method: 'post',
		url: 'tbSafeguard/queryUserPageList',
		headers: {
			userButton: '7a1ce38894794f1b8f8f7028cc1f92e6'
		},
		data
	})
}

//添加运行维护
export function addedMaintain(data) {
	return request({
		method: 'post',
		url: 'tbSafeguard/add',
		headers: {
			userButton: '32096eafd627488b8a217ff8556a5d14'
		},
		data
	})
}

//删除运行维护
export function batchDeleteData(data) {
	return request({
		method: 'post',
		url: 'tbSafeguard/deleteBatch',
		headers: {
			userButton: '982ef51f2a5e43abbba10d24c95792a7'
		},
		data
	})
}

//修改运行维护
export function updateMaintain(data) {
	return request({
		method: 'post',
		url: 'tbSafeguard/update',
		headers: {
			userButton: '6633e7c67fdc4097b0387da468636a96'
		},
		data,
	})
}

//运行维护详情
export function maintainDetail(id) {
	return request({
		method: 'get',
		url: 'tbSafeguard/query/' + id,
		headers: {
			userButton: '1cdf6b3edf01495691087194eea5bd7c'
		},
	})
}